package com.chinacoal.hr.levelimpl.service;


import com.chinacoal.hr.levelapi.entity.FileInfo;

import java.util.List;
import java.util.Map;

/**
 * @author: YunTao.Li
 * @create: 2019-12-04 22:32
 * @description:
 **/
public interface FileInfoService {

    public Map<String, String> addFileInfo(FileInfo record) throws Throwable;

    public List<FileInfo> getFileInfosWithOutPage(Map<String, Object> condition) throws Throwable;

    /**
     * 将属于某业务的文件列表的临时业务id换成真正的业务id
     *
     * @param tempPaDocId :
     * @param realPaDocId :
     * @return : java.util.Map<java.lang.String,java.lang.String>
     * @author : YunTao.Li
     * @date : 2019/12/5 2019/12/5
     */
    public Map<String, String> updatePaDocId(String tempPaDocId, String realPaDocId) throws Throwable;

    public FileInfo getFileInfo(String fileId) throws Throwable;

    /**
     * 删除文件信息
     *
     * @param fileId :
     * @return : java.util.Map<java.lang.String,java.lang.String>
     * @author : YunTao.Li
     * @date : 2020/1/2 2020/1/2
     */
    public Map<String, String> deleteFileInfo(String fileId);
}
